﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PromoCodes_Models.Entities;
using PromoCodes_Models.Abstract;

namespace PromoCodes_Models.Concrete
{
    public class ListProductRepository : IRepository<Product>
    {
        public IQueryable<Product> Items
        {
            get { return PromotionCodeMockDatabase.GetProducts().AsQueryable(); }
        }

        public int Edit(Product item)
        {
            
            return PromotionCodeMockDatabase.AddProduct(item);
        }

        public void Delete(Product item)
        {
             PromotionCodeMockDatabase.DeleteProduct(item);
        }
    }
}
